#ifndef __BSP_CHANNEL_H__
#define __BSP_CHANNEL_H__
#include "gpio.h"
/*
#define CHANNEL1_GPIO_PORT GPIOB
#define CHANNEL1_GPIO_PIN GPIO_PIN_7

#define CHANNEL2_GPIO_PORT GPIOB
#define CHANNEL2_GPIO_PIN GPIO_PIN_6

#define CHANNEL3_GPIO_PORT GPIOB
#define CHANNEL3_GPIO_PIN GPIO_PIN_5

#define CHANNEL4_GPIO_PORT GPIOB
#define CHANNEL4_GPIO_PIN GPIO_PIN_4

#define CHANNEL5_GPIO_PORT GPIOB
#define CHANNEL5_GPIO_PIN GPIO_PIN_3

#define CHANNEL6_GPIO_PORT GPIOD
#define CHANNEL6_GPIO_PIN GPIO_PIN_2

#define CHANNEL7_GPIO_PORT GPIOC
#define CHANNEL7_GPIO_PIN GPIO_PIN_12

#define CHANNEL8_GPIO_PORT GPIOC
#define CHANNEL8_GPIO_PIN GPIO_PIN_11
*/


#define CHANNEL8_GPIO_PORT GPIOB
#define CHANNEL8_GPIO_PIN GPIO_PIN_7

#define CHANNEL7_GPIO_PORT GPIOB
#define CHANNEL7_GPIO_PIN GPIO_PIN_6

#define CHANNEL6_GPIO_PORT GPIOB
#define CHANNEL6_GPIO_PIN GPIO_PIN_5

#define CHANNEL5_GPIO_PORT GPIOB
#define CHANNEL5_GPIO_PIN GPIO_PIN_4

#define CHANNEL4_GPIO_PORT GPIOB
#define CHANNEL4_GPIO_PIN GPIO_PIN_3

#define CHANNEL3_GPIO_PORT GPIOD
#define CHANNEL3_GPIO_PIN GPIO_PIN_2

#define CHANNEL2_GPIO_PORT GPIOC
#define CHANNEL2_GPIO_PIN GPIO_PIN_12

#define CHANNEL1_GPIO_PORT GPIOC
#define CHANNEL1_GPIO_PIN GPIO_PIN_11


#define CHANNEL_ALL_CLOSE 0xB0
#define CHANNEL1_SELECTED 0xB1
#define CHANNEL2_SELECTED 0xB2
#define CHANNEL3_SELECTED 0xB3
#define CHANNEL4_SELECTED 0xB4

#define MEMS34_CHANNEL_ALL_CLOSE 0xC0
#define MEMS34_CHANNEL1_SELECTED 0xC1
#define MEMS34_CHANNEL2_SELECTED 0xC2
#define MEMS34_CHANNEL3_SELECTED 0xC3
#define MEMS34_CHANNEL4_SELECTED 0xC4


void ContorlChannelInit(void);
void ContorlChannelReInit(void);
void ContorlChannel(uint8_t data);



#endif
